/*
 * Created by JFormDesigner on Mon Mar 20 21:14:09 CST 2023
 */

package com.viking.gui.samplesperm;

import java.awt.*;
import javax.swing.*;
import javax.swing.GroupLayout;
import javax.swing.LayoutStyle;
import javax.swing.table.*;

/**
 * @author 29046
 */
public class SampleSperm extends JFrame {
    public SampleSperm() {
        initComponents();
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        spermNumberldetailNumberlabel1 = new JLabel();
        spermItemDescriptionlabel2 = new JLabel();
        label3 = new JLabel();
        spermNumberldetailNumbertextField1 = new JTextField();
        spermItemDescriptiontextField2 = new JTextField();
        sampleNumberlabel4 = new JLabel();
        spermItemValuelabel5 = new JLabel();
        sampleNumbertextField3 = new JTextField();
        spermItemValuetextField4 = new JTextField();
        spermItemCategorylabel6 = new JLabel();
        otherInformationlabel7 = new JLabel();
        spermItemCategorytextField5 = new JTextField();
        otherInformationtextField6 = new JTextField();
        spermltemNamelabel8 = new JLabel();
        photoDescriptionlabel9 = new JLabel();
        spermltemNametextField7 = new JTextField();
        photoDescriptiontextField8 = new JTextField();
        inquirebutton1 = new JButton();
        resetbutton2 = new JButton();
        scrollPane1 = new JScrollPane();
        table1 = new JTable();
        dlabel10 = new JLabel();
        pagelabel11 = new JLabel();
        addbutton3 = new JButton();
        changebutton4 = new JButton();
        deletebutton5 = new JButton();
        upbutton1 = new JButton();
        downbutton2 = new JButton();
        comboBox3 = new JComboBox<>();

        //======== this ========
        setResizable(false);
        setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("\u6837\u672c\u7cbe\u5b50");
        Container contentPane = getContentPane();
        contentPane.setLayout(null);

        //---- spermNumberldetailNumberlabel1 ----
        spermNumberldetailNumberlabel1.setText("\u7cbe\u5b50\u7f16\u53f7\uff1a");
        contentPane.add(spermNumberldetailNumberlabel1);
        spermNumberldetailNumberlabel1.setBounds(new Rectangle(new Point(45, 20), spermNumberldetailNumberlabel1.getPreferredSize()));

        //---- spermItemDescriptionlabel2 ----
        spermItemDescriptionlabel2.setText("\u7cbe\u5b50\u9879\u76ee\u63cf\u8ff0\uff1a");
        contentPane.add(spermItemDescriptionlabel2);
        spermItemDescriptionlabel2.setBounds(new Rectangle(new Point(30, 75), spermItemDescriptionlabel2.getPreferredSize()));

        //---- label3 ----
        label3.setText("text");
        contentPane.add(label3);
        label3.setBounds(59, 99, label3.getPreferredSize().width, 0);
        contentPane.add(spermNumberldetailNumbertextField1);
        spermNumberldetailNumbertextField1.setBounds(120, 10, 95, spermNumberldetailNumbertextField1.getPreferredSize().height);
        contentPane.add(spermItemDescriptiontextField2);
        spermItemDescriptiontextField2.setBounds(120, 70, 93, spermItemDescriptiontextField2.getPreferredSize().height);

        //---- sampleNumberlabel4 ----
        sampleNumberlabel4.setText("\u6837\u672c\u7f16\u53f7\uff1a");
        contentPane.add(sampleNumberlabel4);
        sampleNumberlabel4.setBounds(new Rectangle(new Point(250, 15), sampleNumberlabel4.getPreferredSize()));

        //---- spermItemValuelabel5 ----
        spermItemValuelabel5.setText("\u7cbe\u5b50\u9879\u76ee\u503c\uff1a");
        contentPane.add(spermItemValuelabel5);
        spermItemValuelabel5.setBounds(new Rectangle(new Point(240, 75), spermItemValuelabel5.getPreferredSize()));
        contentPane.add(sampleNumbertextField3);
        sampleNumbertextField3.setBounds(315, 10, 86, sampleNumbertextField3.getPreferredSize().height);
        contentPane.add(spermItemValuetextField4);
        spermItemValuetextField4.setBounds(315, 70, 86, spermItemValuetextField4.getPreferredSize().height);

        //---- spermItemCategorylabel6 ----
        spermItemCategorylabel6.setText("\u7cbe\u5b50\u9879\u76ee\u7c7b\u522b\uff1a");
        contentPane.add(spermItemCategorylabel6);
        spermItemCategorylabel6.setBounds(new Rectangle(new Point(445, 15), spermItemCategorylabel6.getPreferredSize()));

        //---- otherInformationlabel7 ----
        otherInformationlabel7.setText("\u5176\u4ed6\u4fe1\u606f\uff1a");
        contentPane.add(otherInformationlabel7);
        otherInformationlabel7.setBounds(new Rectangle(new Point(470, 75), otherInformationlabel7.getPreferredSize()));
        contentPane.add(spermItemCategorytextField5);
        spermItemCategorytextField5.setBounds(530, 10, 95, spermItemCategorytextField5.getPreferredSize().height);
        contentPane.add(otherInformationtextField6);
        otherInformationtextField6.setBounds(530, 70, 97, otherInformationtextField6.getPreferredSize().height);

        //---- spermltemNamelabel8 ----
        spermltemNamelabel8.setText("\u7cbe\u5b50\u9879\u76ee\u540d\u79f0\uff1a");
        contentPane.add(spermltemNamelabel8);
        spermltemNamelabel8.setBounds(new Rectangle(new Point(660, 15), spermltemNamelabel8.getPreferredSize()));

        //---- photoDescriptionlabel9 ----
        photoDescriptionlabel9.setText("\u56fe\u7247\u63cf\u8ff0\uff1a");
        contentPane.add(photoDescriptionlabel9);
        photoDescriptionlabel9.setBounds(new Rectangle(new Point(680, 75), photoDescriptionlabel9.getPreferredSize()));
        contentPane.add(spermltemNametextField7);
        spermltemNametextField7.setBounds(745, 10, 95, spermltemNametextField7.getPreferredSize().height);
        contentPane.add(photoDescriptiontextField8);
        photoDescriptiontextField8.setBounds(745, 70, 95, photoDescriptiontextField8.getPreferredSize().height);

        //---- inquirebutton1 ----
        inquirebutton1.setText("\u67e5\u8be2");
        contentPane.add(inquirebutton1);
        inquirebutton1.setBounds(new Rectangle(new Point(624, 128), inquirebutton1.getPreferredSize()));

        //---- resetbutton2 ----
        resetbutton2.setText("\u91cd\u7f6e");
        contentPane.add(resetbutton2);
        resetbutton2.setBounds(new Rectangle(new Point(728, 128), resetbutton2.getPreferredSize()));

        //======== scrollPane1 ========
        {

            //---- table1 ----
            table1.setModel(new DefaultTableModel(
                new Object[][] {
                    {"", null, null, null, null, null, null, null},
                    {null, null, null, null, null, null, null, null},
                    {null, null, null, null, null, null, null, null},
                    {null, null, null, null, null, null, null, null},
                    {null, null, null, null, null, null, null, null},
                },
                new String[] {
                    "\u7cbe\u5b50\u7f16\u53f7", "\u6837\u672c\u7f16\u53f7", "\u7cbe\u5b50\u9879\u76ee\u7c7b\u522b", "\u7cbe\u5b50\u9879\u76ee\u540d\u79f0", "\u7cbe\u5b50\u9879\u76ee\u63cf\u8ff0", "\u7cbe\u5b50\u9879\u76ee\u503c", "\u5176\u4ed6\u4fe1\u606f", "\u56fe\u7247\u63cf\u8ff0"
                }
            ));
            scrollPane1.setViewportView(table1);
        }
        contentPane.add(scrollPane1);
        scrollPane1.setBounds(25, 195, 852, 141);

        //---- dlabel10 ----
        dlabel10.setText("\u7b2c");
        contentPane.add(dlabel10);
        dlabel10.setBounds(new Rectangle(new Point(60, 365), dlabel10.getPreferredSize()));

        //---- pagelabel11 ----
        pagelabel11.setText("\u9875");
        contentPane.add(pagelabel11);
        pagelabel11.setBounds(140, 365, 20, 20);

        //---- addbutton3 ----
        addbutton3.setText("\u589e\u52a0");
        contentPane.add(addbutton3);
        addbutton3.setBounds(new Rectangle(new Point(575, 355), addbutton3.getPreferredSize()));

        //---- changebutton4 ----
        changebutton4.setText("\u4fee\u6539");
        contentPane.add(changebutton4);
        changebutton4.setBounds(new Rectangle(new Point(680, 355), changebutton4.getPreferredSize()));

        //---- deletebutton5 ----
        deletebutton5.setText("\u5220\u9664");
        contentPane.add(deletebutton5);
        deletebutton5.setBounds(new Rectangle(new Point(785, 355), deletebutton5.getPreferredSize()));

        //---- upbutton1 ----
        upbutton1.setText("\u4e0a\u4e00\u9875");
        contentPane.add(upbutton1);
        upbutton1.setBounds(new Rectangle(new Point(210, 360), upbutton1.getPreferredSize()));

        //---- downbutton2 ----
        downbutton2.setText("\u4e0b\u4e00\u9875");
        contentPane.add(downbutton2);
        downbutton2.setBounds(new Rectangle(new Point(300, 360), downbutton2.getPreferredSize()));

        //---- comboBox3 ----
        comboBox3.setModel(new DefaultComboBoxModel<>(new String[] {
            "1",
            "2",
            "3",
            "4",
            "5",
            "6"
        }));
        contentPane.add(comboBox3);
        comboBox3.setBounds(75, 360, 62, 30);

        {
            // compute preferred size
            Dimension preferredSize = new Dimension();
            for(int i = 0; i < contentPane.getComponentCount(); i++) {
                Rectangle bounds = contentPane.getComponent(i).getBounds();
                preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
            }
            Insets insets = contentPane.getInsets();
            preferredSize.width += insets.right;
            preferredSize.height += insets.bottom;
            contentPane.setMinimumSize(preferredSize);
            contentPane.setPreferredSize(preferredSize);
        }
        setSize(940, 440);
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JLabel spermNumberldetailNumberlabel1;
    private JLabel spermItemDescriptionlabel2;
    private JLabel label3;
    private JTextField spermNumberldetailNumbertextField1;
    private JTextField spermItemDescriptiontextField2;
    private JLabel sampleNumberlabel4;
    private JLabel spermItemValuelabel5;
    private JTextField sampleNumbertextField3;
    private JTextField spermItemValuetextField4;
    private JLabel spermItemCategorylabel6;
    private JLabel otherInformationlabel7;
    private JTextField spermItemCategorytextField5;
    private JTextField otherInformationtextField6;
    private JLabel spermltemNamelabel8;
    private JLabel photoDescriptionlabel9;
    private JTextField spermltemNametextField7;
    private JTextField photoDescriptiontextField8;
    private JButton inquirebutton1;
    private JButton resetbutton2;
    private JScrollPane scrollPane1;
    private JTable table1;
    private JLabel dlabel10;
    private JLabel pagelabel11;
    private JButton addbutton3;
    private JButton changebutton4;
    private JButton deletebutton5;
    private JButton upbutton1;
    private JButton downbutton2;
    private JComboBox<String> comboBox3;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
